//
//  BQYLRightTableViewCell.m
//  BeeQuick
//
//  Created by 杨雷 on 2016/11/19.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "BQYLRightTableViewCell.h"
#import <UIImageView+WebCache.h>


@implementation BQYLRightTableViewCell

- (void)setModel:(BQYLDetailsModel *)model
{
    _model = model;
    self.nameLabel.text = model.name;
    self.specificsLabel.text = model.specifics;
    self.priceLabel.text = model.price;
    self.market_priceLabel.text = model.market_price;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.icon]];
    self.buyOneView.image = [UIImage imageNamed:@"buyOne.png"];
    self.had_pm = model.had_pm.intValue;
    if (self.had_pm == 0)
    {
        self.buyOneView.hidden = YES;
    }
    else
    {
        self.buyOneView.hidden = NO;
    }
    


}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
